import request from '@/utils/request'
export default {
    //品种添加到本地
    importPublicList(breedTypeListStr = 'fish', list = []) {
        return request.post("/v3/templateTenant/plantType/importPublicListFish", {
            farmingTypeNo: 'sc',
            list: list,
            farming:'FISH',
            breedType: breedTypeListStr||'fish',
            organizationNo: sessionStorage.organizationNo
        });
    },
    edit(data) {
        return request.post("/v3/templateTenant/plantType/edit", {
            ...data
        });
    },
    //本地品种
    queryPageByCondition() {
        return request.get(`/v3/templateTenant/plantType/queryTree?breedType=fish&organizationNo=${sessionStorage.organizationNo}&farmingTypeNo=sc`)
    },
    //删除品种
    delList(list) {
        return request.post("/v3/templateTenant/plantType/delListByNo", {
            list: list,
            organizationNo: sessionStorage.organizationNo
        });
    }
};
